<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta charset="utf-8" />
	<title>用户注册</title>
	<meta name="Keywords" content="17玩芽-用户注册" />
	<meta name="Description" content="17玩芽-用户注册" />
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<!-- Mobile Devices Support @begin -->
	<meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
	<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
	<meta content="no-cache" http-equiv="pragma">
	<meta content="0" http-equiv="expires">
	<meta content="telephone=no, address=no" name="format-detection">
	<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<!-- Mobile Devices Support @end -->
	<style>
		#toast{display:none;z-index: 9001;position:absolute;padding:8px 25px;color:#000000;font-size:16px;background-color: rgba(153,255,255,0.9);box-shadow:0 0 5px #666666;z-index:9999;}
		a:link {
			text-decoration: none;
		}
		a:visited {
			text-decoration: none;
		}
		a:hover {
			text-decoration: none;
		}
		a:active {
			text-decoration: none;
		}
		body{text-align:center;background-color:white}
		#center{
			margin-right:auto;
			margin-left:auto;
			width:100%;
		}
		.img{
			max-width:100%;
		width:{
			this.style.width=(this.offsetWidth>document.body.clientWidth*)?"100%":"auto"});
		overflow:hidden;
		}
		.reginput{
			border-radius:10px;
			height:40px;
			width:250px;
			border: solid #F08995 2px;
			font-size:21px
		}
		.regbtn{
			border-radius:10px;
			height:50px;
			width:250px;
			color: white;
			border: solid #F08995 2px;
			background-color: #F08995;
			font-size:22px
		}
	</style>
</head>
<center>
	<body ondragstart="return false;width:100%">
	<form action="./userReg.php" method="post" name="formsignup" id="formsignup">
	<div id="center" >

		<div style="height: 60px"></div>
		<!--top1-->
		<div style="-webkit-transform:translate3d(0,0,0);width:100%;align-content: center">
			<svg id="svgCircleTutorial" height="110" width="110" xmlns="http://www.w3.org/2000/svg">
				<defs>
					<pattern id="raduisImage" patternUnits="userSpaceOnUse" width="100" height="100">
						<image xlink:href="<?php echo $info_obj['headimgurl'];?>" x="0" y="0" width="100" height="100" />
					</pattern>
				</defs>
				<circle id="myCircle" cx="55" cy="55" r="50" fill="url(#raduisImage)"  stroke="#F08995" stroke-width="2" />
			</svg>


			<!--<img src="<?php /*echo $info_obj['headimgurl'];*/?>" class="img" style="width: 200px;height: 200px"/>-->
			<br>
			<span style="font-size: larger;font-family:Helvetica"><?php echo $info_obj['nickname'];?><span>
		</div>
		<div style="-webkit-transform:translate3d(0,0,0);width:100%;text-align:center;margin-top:10px">
			<table class="kuang" border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td><br><br><input name="tel" class="reginput" id="tel" value="" placeholder="请输入手机号码" type="text"></td>
				</tr>
			</table>
		</div>
		<div style="-webkit-transform:translate3d(0,0,0);width:100%;">
			<br>
			<button class="regbtn" type="button" onclick="formCheck();">注  册</button>
		</div>
	</div>
		<input name="openid" value="<?php echo $openid;?>" type="hidden">
		<input name="head_img_url" value="<?php echo $info_obj['headimgurl'];?>" type="hidden">
		<input name="sex" value="<?php echo $info_obj['sex'];?>" type="hidden">
		<input name="nickname" value="<?php echo $info_obj['nickname'];?>" type="hidden">
	</form>
	</body>
</center>
<div id="toast"></div>
<script type="text/javascript">
	var hwm=function(id){ return document.getElementById(id);};
	String.prototype.len=function(){return this.replace(/[^\x00-\xff]/g,"aa").length;};
	String.prototype.trim=function(){return this.replace(/(^ *)|( *$)/g, "");};
	String.prototype.encode=function(){return escape(this.replace(/·/g," ")).replace(/\+/g,"%2B");};
	String.prototype.left=function(length){
		if(this.len()>length){
			var _temp=this;
			_temp=_temp.replace(/([^\x00-\xff])/g,"$1>");
			_temp=_temp.substring(0,length-2)+"..";
			return _temp.replace(/>/g,"");
		}else{
			return this.toString();
		}
	};
	Element.prototype.show=function(){this.style.display="block";};
	Element.prototype.hide=function(){this.style.display="none";};
	Element.prototype.center=function(top){
		this.style.left=(_system._scroll().x+_system._zero(_system._client().bw-this.offsetWidth)/2)+"px";
		this.style.top=(top?top:(_system._scroll().y+_system._zero(_system._client().bh-this.offsetHeight)/2))+"px";
	};
	var _system={
		_client:function(){
			return {w:document.documentElement.scrollWidth,h:document.documentElement.scrollHeight,bw:document.documentElement.clientWidth,bh:document.documentElement.clientHeight};
		},
		_zero:function(n){
			return n<0?0:n;
		},
		_scroll:function(){
			return {x:document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,y:document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop};
		},
		_guide:function(click){
			this._cover(true);
			hwm("guide").show();
			hwm("guide").style.top=(_system._scroll().y+5)+"px";
			window.onresize=function(){_system._cover(true);hwm("guide").style.top=(_system._scroll().y+5)+"px";};
			if(click){hwm("guide").onclick=("cover").onclick=function(){
				_system._cover();
				hwm("guide").hide();
				hwm("cover").onclick=null;
				hwm("guide").onclick=null;
				window.onresize=null;
			};}
		},
		_toast:function(text,fun){
			hwm("toast").show();

			hwm("toast").innerHTML=text;

			hwm("toast").center(100);

			setTimeout(function(){
				hwm("toast").hide();
				hwm("_DialogBGMask").hide();
				if(fun){(fun)();}
			},3*1000);
		}
	}
	function formCheck()
	{
		var tel = hwm("tel").value;
		var partten = /^1[3,4,5,6,7,8]\d{9}$/g;
		if(tel=="")
		{
			_system._toast("请输入手机号！");
			return;
		}
		if(!partten.test(tel))
		{
			_system._toast("请输入正确的手机号！");
			return;
		}
		hwm("formsignup").submit();
	}
</script>
</html>


